package com.uchengwang.ui.cm_ui.umsg.ui;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.WindowManager;
import android.widget.LinearLayout;

import com.uchengwang.R;
import com.uchengwang.functions.http.config.BaseConfig;
import com.uchengwang.functions.image.ImageManager;
import com.uchengwang.ui.base_ui.ui.AllBaseActivity;
import com.uchengwang.ui.view.EasePhotoView;

/**
 * Created by U城网 on 2018/3/22.
 * 显示享聊头像的界面
 */

public class ShowWantChatAvatarActivity extends AllBaseActivity{
    private EasePhotoView photoView;
    private LinearLayout linearLayout;

    private String headString;//传过来的头像地址
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(R.layout.activity_show_want_chat_avatar);

        headString = getIntent().getStringExtra(BaseConfig.USER_AVATAR);
        initView();
    }

    private void initView() {
        photoView = (EasePhotoView) findViewById(R.id.show_image);
        linearLayout = (LinearLayout) findViewById(R.id.show_linear);

        ImageManager.getInstance().loadImage(this, photoView, headString, ImageManager.ImageType.NARMOL);

    }
}
